package com.rfid.transport;

import android.annotation.SuppressLint;

public class Transport_TcpClient implements IComm {
    @SuppressLint({"UseValueOf"})
    private Long handle = new Long(0L);

    public int Connect(String paramString, int paramInt) {
        return NdkSupport.TCPClientOpen(paramString, paramInt, this.handle);
    }

    public int DisConnect() {
        return NdkSupport.TCPClientClose(this.handle.longValue());
    }

    public int Receive(byte[] paramArrayOfByte, int paramInt) {
        return NdkSupport.TCPClientRecvBuffer(this.handle.longValue(), paramArrayOfByte, paramInt);
    }

    public void ResetInputStream() {
        NdkSupport.TCPClientIoflush(this.handle.longValue());
    }

    public int Send(byte[] paramArrayOfByte, int paramInt1, int paramInt2) {
        return NdkSupport.TCPClientSendBuffer(this.handle.longValue(), paramArrayOfByte, paramInt1, paramInt2);
    }
}
